﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CycleTimeReport.CApCTRSettingsCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Windows;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.CycleTimeReport;

public class CApCTRSettingsCmd : TxButtonCommand
{
  private CApCTRSettingsEnabler m_enabler = new CApCTRSettingsEnabler();

  public virtual bool Licensed => TxCommandLicenser.CycleTimeReportLicense;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;

  public virtual string Bitmap => CApCTRStringTable.BITMAP_CTR_SETTINGS;

  public virtual string Category => CApCTRStringTable.CATEGORY;

  public virtual string Description => CApCTRStringTable.DESCRIPTION_CTR_SETTINGS;

  public virtual string Tooltip => CApCTRStringTable.TOOLTIP_CTR_SETTINGS;

  public virtual string Name => CApCTRStringTable.NAME_CTR_SETTINGS;

  public virtual ITxImage Image
  {
    get => (ITxImage) TxImageManager.GetImageByKey("CycleTimeReportSettings");
  }

  public virtual void Execute(object cmdParams)
  {
    try
    {
      ((Window) new CUiCTRSettings()).Show();
    }
    catch (Exception ex)
    {
    }
  }
}
